/* 
 * @(#)AdminService.java    Created on Apr 19, 2013
 * Copyright (c) 2013 ZDSoft Networks, Inc. All rights reserved.
 * $Id$
 */
package com.leruan.aasimp.service;

import java.util.List;
import java.util.Map;

import com.leruan.aasimp.entity.Sensitive;
import com.leruan.aasimp.entitydto.SensitiveDto;

public interface AdminService {
    /**
     * 每检测到有敏感词是就插入一条记录
     * 
     * @param sensitive
     */
    void addSensitive(Sensitive sensitive);

    /**
     * 通过相关条件查询敏感词列表
     * 
     * @param boardId
     * @param sensitiveString
     * @param pageNo
     */
    List<SensitiveDto> getSensitive(String boardId, String sensitiveString, int pageNo);

    /**
     * 获得敏感词列表总数
     * 
     * @param object
     * @return
     */
    Long getSensitiveTotal(Map<String, String> map);

}
